﻿using System.ComponentModel;
using System.Windows.Forms;
using Raider.WinForms.Actions.Properties;

namespace Raider.WinForms.Actions.Standard
{
    /// <summary>
    /// Exits from the application.
    /// </summary>
    [Description("Exits from application.")]
    public class ExitAction : StandardAction
    {
        public ExitAction()
            : base(Resources.Exit, "File", Keys.Alt | Keys.F4, Resources.ExitImage)
        {
        }

        protected override void OnExecute(ExecuteEventArgs args)
        {
            base.OnExecute(args);

            Application.Exit();
        }
    }
}
